package com.thiswhyme.swagger.servicezuul.controller;

import com.thiswhyme.common.response.ResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

/**
 * Created by thiswhyme on 2020/6/4.
 */
@RestController
@RequestMapping("/swaggerzuul")
@Api(tags = "【认证】")
public class SwaggerZuulController {

    @ApiOperation("登陆")
    @GetMapping("/login")
    public ResponseVo<String> login(@RequestParam @ApiParam(value = "用户ID") Integer userId) {
        return ResponseVo.success(userId + ": 登陆成功");
    }
}
